package com.zzh.net.Utils;
//基准Utils

import android.content.Context;

import com.zzh.net.NetConstants;


public class NetUtil {

    public static Context mContext;

    public static String Sign(String reqstr_) {
        StringBuilder sb = new StringBuilder(NetConstants.CLIENT_SECRET);
        reqstr_ = reqstr_.substring(reqstr_.length() - 6, reqstr_.length());
        for (int i = 0; i < reqstr_.length() - 1; i++) {
            int ch1 = Integer.parseInt(String.valueOf(reqstr_.charAt(i)));
            int ch2 = Integer.parseInt(String.valueOf(reqstr_.charAt(i + 1)));
            sb.insert(ch1 * ch2, ch1);
        }
        String sign = MD5.Md5(sb.toString()).toUpperCase();
        return sign;
    }

}
